/*
 * $Id: CfgOnwatchFileInfo.java,v 1.6 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * Created Sun May 03 21:11:35 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the 'CFG_ONWATCH_FILE_INFO' table. This
 * class may be customized as it is never re-generated after being created.
 */
public class CfgOnwatchFileInfo extends AbstractCfgOnwatchFileInfo implements
		Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -2433876542567977698L;
	public static final String DOWNLOAD_TO_DEVICE = "PUT";
	public static final String UPLOAD_FROM_DEVICE = "GET";
	public static final String BINARY_FILE_TYPE = "BINARY";
	public static final String ASCII_FILE_TYPE = "ASCII";

	/**
	 * Simple constructor of CfgOnwatchFileInfo instances.
	 */
	public CfgOnwatchFileInfo() {
	}

	/**
	 * Constructor of CfgOnwatchFileInfo instances given a simple primary key.
	 * 
	 * @param onwatchFileId
	 */
	public CfgOnwatchFileInfo(java.lang.Long onwatchFileId) {
		super(onwatchFileId);
	}

	/* Add customized code below */
	public boolean isDownloadToDevice() {
		return (CfgOnwatchFileInfo.DOWNLOAD_TO_DEVICE.equalsIgnoreCase(this
				.getDirection()) ? true : false);
	}

	public boolean isUploadFromDevice() {
		return (CfgOnwatchFileInfo.UPLOAD_FROM_DEVICE.equalsIgnoreCase(this
				.getDirection()) ? true : false);
	}
}
